<template>
    <div>
        <page-header title="发布任务与通知" content="Tasks and notifications" />
        <el-row>
            <el-col  :xs="24" :sm="12" :md="9" :lg="7" :xl="6">
                <add-task @click.native="addtask"/>
            </el-col>
            <el-col :xs="24" :sm="12" :md="9" :lg="7" :xl="6">
                <add-notification @click.native="addnotice"/>
            </el-col>
        </el-row>
    </div>
</template>

<script>
export default {
    name: 'add.message',
    methods: {
        addtask() {
            // 跳转路径
            this.$router.push({
                path: '/teacher/add_task',
                query: {
                    message_type: 'task'
                }
            })
        },
        addnotice() {
            // 跳转路径
            this.$router.push({
                path: '/teacher/add_task',
                query: {
                    message_type: 'notice'
                }
            })
        }
    }
}
</script>
